<?php 
	include("header.php");
	include("top_menu.php");
	$connection = mysql_pconnect("localhost" , "root" , "31122001");
    mysql_select_db("kt_site");
    $name = $_POST['name'];
    $query = "INSERT INTO device_type (name) VALUES ('$name');";
	$result = mysql_query($query);
	echo "<meta http-equiv='Refresh' content='0; URL=index.php'>";
	exit;
?>
